package com.poly;

public class Teacher extends Person{
    private double salary;

    public String say(){
        return super.say()+" 我是一名老师,月薪"+salary;
    }

    public Teacher(String name, int age, double salary) {
        super(name, age);
        this.salary = salary;
    }
}
